//
//  TNHRequestHelper.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/17/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest/ASIHTTPRequest.h"
#import "ASIHTTPRequest/ASIFormDataRequest.h"
#import "SBJson/SBJson.h"

@interface TNHRequestHelper : NSObject

+ (void)sendGetRequest:(NSString *)requestPath withTag:(NSInteger)tag params:(NSDictionary *)params delegate:(id<ASIHTTPRequestDelegate>)delegate;
+ (void)sendPostRequest:(NSString *)requestPath withTag:(NSInteger)tag params:(NSDictionary *)params delegate:(id<ASIHTTPRequestDelegate>)delegate;
+ (void)sendPutRequest:(NSString *)requestPath withTag:(NSInteger)tag params:(NSDictionary *)params delegate:(id<ASIHTTPRequestDelegate>)delegate;
+ (void)sendDeleteRequest:(NSString *)requestPath withTag:(NSInteger)tag params:(NSDictionary *)params delegate:(id<ASIHTTPRequestDelegate>)delegate;
+ (void)downloadFrom:(NSString *)url saveTo:(NSString *)path withTag:(NSInteger)tag delegate:(id<ASIHTTPRequestDelegate>)delegate;
+ (void)uploadFile:(NSString *)path to:(NSString *)url tag:(NSInteger)tag params:(NSDictionary *)params delegate:(id<ASIHTTPRequestDelegate>)delegate;

+ (id)objectWithString:(NSString *)theJson;

@end
